$(function () {
	vm.getInfo();
});

var vm = new Vue({
	el:'#mapp',
	data:{
		title: "编辑项目进展",
		bsnXmjz: {}
	},
	methods: {
		saveOrUpdate: function (event) {
			var thisUrl = ajaxServerUrlG("bsnXmjz/saveXmjz");
			$.ajax({
				type: "POST",
			    url: thisUrl,
                contentType: "application/json",
			    data: JSON.stringify(vm.bsnXmjz),
			    success: function(r){
			    	if(r.code === 0){
						alert('操作成功');
					}else{
						alert(r.msg);
					}
				}
			});
		},
		getInfo: function(id){
			var thisUrl = ajaxServerUrlG("bsnXmjz/info/xmjz");
			$.get(thisUrl, function(r){
					if(r.code === 0){
                		vm.bsnXmjz = r.bsnGonggao;
					}else{
						alert(r.msg);
					} 
            });
		}
	}
});